import request from "../utils/request";

// 添加收藏图片
export const addSenceImage = (data) => {
    return request.post("/SenceImage/AddSenceImage", data)
}

// 修改收藏图片
export const updateSenceImage = (data) => {
    return request.post("/SenceImage/UpdateSenceImage", data)
}

// 删除收藏图片
export const deleteSenceImage = (params) => {
    return request.delete("/SenceImage/DeleteSenceImage", {
        params
    })
}

// 通过userId查找图片列表
export const getSenceImageByUserId = (params) => {
    return request.get("/SenceImage/GetSenceImageByUserId", {
        params
    })
}

// 场景绑定收藏图片
export const bindSenceImage = (data) => {
    return request.post("/SenceImage/BindSenceImage", data)
}

export const getBindSenceIds = (params) => {
    return request.get("/SenceImage/GetBindSenceIds", {
        params
    })
}

// 收藏图片绑定场景
export const bindImageSence = (data) => {
    return request.post("/SenceImage/BindImageSence", data)
}

// 收藏图片绑定场景
export const bindOneImageSence = (data) => {
    return request.post("/SenceImage/BindOneImageSence", data)
}

// 通过senceId 查找图片列表
export const getSenceImageBySenceId = (params) => {
    return request.get("/SenceImage/GetSenceImageBySenceId", {
        params
    })
}